﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsCalculate.TextHandle
{
    public partial class textHandle : Form
    {
        public textHandle()
        {
            InitializeComponent();
            this.comboBox1.SelectedIndex = 0;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (comboBox1.Text=="小写转大写")
            {
                this.downtext.Text = this.toptext.Text.ToUpper();
            }
            else
            {
                this.downtext.Text = this.toptext.Text.ToLower();
            }
        }
    }
}
